#include"process.h"

void download(double speed,double total){
	double cur=0;
	while(cur<=total){
		process(cur,total);
		usleep(2000);
		cur+=speed;
	}
	printf("\nTotal %.2fMB downloaded successfully.\n",total);
}

int main(){
	download(1,1024);
	download(1,300);
	download(1,1300);
	download(1,2300);
	return 0;
}
